package com.moppo.intefacetest.entity;

import java.util.UUID;


/**
 * @author zhangqiang
 */

public class EntityRule {
    private String username;
    private boolean account;
    private int addtime;
    private double currentmoney;
    private double totailaddmoney;
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean isAccount() {
        return account;
    }

    public void setAccount(boolean account) {
        this.account = account;
    }

    public int getAddtime() {
        return addtime;
    }

    public void setAddtime(int addtime) {
        this.addtime = addtime;
    }

    public double getCurrentmoney() {
        return currentmoney;
    }

    public void setCurrentmoney(double currentmoney) {
        this.currentmoney = currentmoney;
    }

    public double getTotailaddmoney() {
        return totailaddmoney;
    }

    public void setTotailaddmoney(double totailaddmoney) {
        this.totailaddmoney = totailaddmoney;
    }


    public void getSerialnumber(String username,double currentmoney){
        System.out.println("Account："+username+" Balance：￥"+currentmoney);
        System.out.println("Serial Number："+ UUID.randomUUID().toString());
    }
}
